#ifndef PrimaryGeneratorAction_h
#define PrimaryGeneratorAction_h 1

#include <geant4/G4VUserPrimaryGeneratorAction.hh>
#include <geant4/globals.hh>

class DetectorConstruction;
class G4GeneralParticleSource;
class G4Event;
 
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
  public:
    PrimaryGeneratorAction(DetectorConstruction*);
   ~PrimaryGeneratorAction();
    G4GeneralParticleSource * getSource() const;

  public:
    void GeneratePrimaries(G4Event*);

  private:
    G4GeneralParticleSource* particleSource;
    DetectorConstruction* myDetector;
};

#endif


